<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
	<CodeSnippet Format="1.0.0">
		<Header>
			<Title>lnprop</Title>
			<Shortcut>lnprop</Shortcut>
			<Description>Snippet per la proprietà ed il field con lazy initialization e INotifyPropertyChanged</Description>
			<Author>Matteo Baglini</Author>
			<SnippetTypes>
				<SnippetType>Expansion</SnippetType>
			</SnippetTypes>
		</Header>
		<Snippet>
			<Declarations>
				<Literal>
					<ID>type</ID>
					<ToolTip>Tipo proprietà</ToolTip>
					<Default>RefereceType</Default>
				</Literal>
				<Literal>
					<ID>property</ID>
					<ToolTip>Nome della proprietà</ToolTip>
					<Default>PropertyName</Default>
				</Literal>
				<Literal>
					<ID>field</ID>
					<ToolTip>Nome field</ToolTip>
					<Default>fieldName</Default>
				</Literal>
			</Declarations>
			<Code Language="csharp"><![CDATA[private $type$ $field$ = null;

	public $type$ $property$
	{
		get 
		{ 
			if ($field$==null)
				$field$ = new $type$();
				
			return $field$;
		}
		set 
		{ 
			if (value != $field$)
			{
				$field$ = value;
				RaiseNotifyPropertyChanged("$property$");
			}
		}
	}
	$end$]]>
			</Code>
		</Snippet>
	</CodeSnippet>
</CodeSnippets>
